import type {UserConfigExport} from "@tarojs/cli"

export default {
  copy: {
    patterns: [
      {from: 'project.private.config.json', to: 'dist/project.private.config.json'}
    ],
    options: {}
  },
  logger: {
    quiet: false,
    stats: true
  },
  mini: {
    webpackChain(chain) {
      chain.module.rule('babel').delete('babel')
      chain.merge({
        optimization: {
          minimize: true,
        }
      })

    }
  },
  h5: {},
  devServer: {
    hot: true
  }
} satisfies UserConfigExport<'webpack5'>
